
<?php
$name2 = $_POST['basic_name2']; //giá trị của form name="basic_name2"
//connect datbase

$conn = mysql_connect('localhost', 'root', 'vertrigo');
mysql_select_db('tdc');
mysql_query("INSERT INTO staffs(Name) VALUES('$name2')");
?>
<html>
    <head>
        <meta charset="UTF-8">
         <meta http-equiv="refresh" content="0.5; url=index.php"/>
    </head>
    <body>
    </body>
</html>

